ROOT_DIR = ../
include $(ROOT_DIR)/Makefile.inc

SRC = $(wildcard *.c)
OBJ = $(SRC:.c=.o)

CFLAGS += $(INCLUDE_DIR)

ifeq ($(DEBUG),y)
	CFLAGS += -DDEBUG 
endif

all : $(OBJ)

.c.o :	
	$(CC) $(CFLAGS) $< -c
	@cp $@ $(OBJ_DIR)/.

clean:
	rm -rf *.o *~ $(BIN)

